﻿# -*- coding: utf-8 -*
from django.conf.urls.defaults import patterns, include, url
#从views中引入函数进行对应
from melodysite.show.views import *
from melodysite.account.views import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()


#url的对应函数
urlpatterns = patterns('melodysit.show.views',
    # Examples:
    # url(r'^$', 'melodysite.views.home', name='home'),
    # url(r'^melodysite/', include('melodysite.foo.urls')),
    (r'^news/(?P<id>\w*)',news_details),
    (r'^$',index),
    (r'^blog',blog),
    (r'^blog_details',blog_details),
    (r'^contact',contact),
    (r'^sendme',sendme),
    (r'^news',news),
    (r'^pub_news',pub_news),
    (r'^save_news',save_news),
    (r'^details',details),

    (r'^newsearch',newsearch),
    (r'^Information/(?P<id>\w*)',Information),
    (r'^show_column',show_column),
    (r'^show_format/(?P<num>\w*)',show_format),
    (r'^search/(?P<site>\w*)',search),
    (r'^desktop/(?P<id>\w*)',desktop_details),
    (r'^desktop_pinpai/(?P<type>\w*)',desktop_pinpai),
    (r'^desktop_price/(?P<price>\w*)',desktop_price),
    #url(r'^desktop_pinmu/(?P<num>\w*)',show_format),
    (r'^desktop_core/(?P<core>\w*)',desktop_core),
    (r'^desktop_disk/(?P<disk>\w*)',desktop_disk),
    (r'^desktop_disksize/(?P<disksize>\w*)',desktop_disksize),
    (r'^desktop_xianka/(?P<type>\w*)',desktop_xianka),
    (r'^desktop_memerysize/(?P<size>\w*)',desktop_memerysize),
    #notebook,desktop,pad,utral,intm
	#url(r'show/new^$',new_post),
	#url(r'show/topics/(?P<topic_name>\w+)/new/$', new_post),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
	#url()
    # Uncomment the next line to enable the admin:nodebookscarch
    (r'^nodebooksearch',nodebooksearch),
    (r'^nodebook/(?P<id>\w*)',nodebook_details),
    (r'^nodebook_pinpai/(?P<type>\w*)',nodebook_pinpai),
    (r'^nodebook_price/(?P<price>\w*)',nodebook_price),
    (r'^nodebook_pinmu/(?P<num>\w*)',nodebook_pinmu),
    (r'^nodebook_core/(?P<core>\w*)',nodebook_core),
    (r'^nodebook_disk/(?P<disk>\w*)',nodebook_disk),
    (r'^nodebook_disksize/(?P<disksize>\w*)',nodebook_disksize),
    (r'^nodebook_xianka/(?P<type>\w*)',nodebook_xianka),
    (r'^nodebook_memerysize/(?P<size>\w*)',nodebook_memerysize),


    (r'^urtalbooksearch',urtalbooksearch),
    (r'^urtalbook/(?P<id>\w*)',urtalbook_details),
    (r'^urtalbook_pinpai/(?P<type>\w*)',urtalbook_pinpai),
    (r'^urtalbook_price/(?P<price>\w*)',urtalbook_price),
    (r'^urtalbook_pinmu/(?P<num>\w*)',urtalbook_pinmu),
    (r'^urtalbook_core/(?P<core>\w*)',urtalbook_core),
    (r'^urtalbook_disk/(?P<disk>\w*)',urtalbook_disk),
    (r'^urtalbook_high/(?P<high>\w*)',urtalbook_high),
    (r'^urtalbook_weight/(?P<weight>\w*)',urtalbook_weight),
    (r'^admin/', include(admin.site.urls)),

)
urlpatterns += patterns('',
        (r'^login',login),
        (r'^logout',logout),
        (r'^register',register),
        )
        
urlpatterns += patterns('',
        (r'^desktop',desktops),
        (r'^desktop_scarch',desktop_scarch),
        )   

        
urlpatterns += patterns('',
    (r'^notebook',notebooks),
    #url(r'^notebook_search',notebook_search),
    (r'^pad',pad),
    (r'^ultra',ultra),
    (r'^intm',intm),
        )